<?php


namespace App\Models;


class BadgeUser extends BaseModel
{
    protected $table = 'badge_user';

    protected $fillable = [
        'forwarder_id',
        'badge_id',
        'sort',
    ];

    public function badge()
    {
        return $this->hasOne('App\Models\Badge', 'id', 'badge_id');
    }

    public function forwarder()
    {
        return $this->hasOne('App\Models\Forwarder', 'id', 'forwarder_id');
    }
}
